home *** CD-ROM | disk | FTP | other *** search
- 156
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- TempFileName
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baTempFileName returns a temporary file name that is guaranteed not to exist.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baTempFileName( Prefix )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- Prefix is a string of up to 3 characters that is used to generate the filename.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- Returns the file name, including the path.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set FileName = TempFileName( "gaz" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- FileName := TempFileName( "gaz" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- The file name will consist of the path name, a tilde "~" followed by the prefix, then a
- --- RECORDSEPARATOR ---
- four digit number, with a ".tmp" extension; eg "c:\temp\~gaz1257.tmp". The file will
- --- RECORDSEPARATOR ---
- not be created.
- --- RECORDSEPARATOR ---
- Under 32 bit, the file name will consist of the path name, followed by the prefix,
- --- RECORDSEPARATOR ---
- then a number, with a ".tmp" extension; eg "c:\temp\gaz12453.tmp" An empty file
- --- RECORDSEPARATOR ---
- with that name will be created.
- --- RECORDSEPARATOR ---
- The baTempFileName function gets the temporary file path as follows::
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- 16 bit:
- --- RECORDSEPARATOR ---
- 1.
- --- RECORDSEPARATOR ---
- The path specified by the TEMP environment variable
- --- RECORDSEPARATOR ---
- 2.
- --- RECORDSEPARATOR ---
- Root directory of the first hard disk, if TEMP is not defined.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- 32 bit:
- --- RECORDSEPARATOR ---
- 1.
- --- RECORDSEPARATOR ---
- The path specified by the TMP environment variable.
- --- RECORDSEPARATOR ---
- 2.
- --- RECORDSEPARATOR ---
- The path specified by the TEMP environment variable, if TMP is not
- --- RECORDSEPARATOR ---
- defined.
- --- RECORDSEPARATOR ---
- 3.
- --- RECORDSEPARATOR ---
- The current directory, if both TMP and TEMP are not defined.
- --- RECORDSEPARATOR ---
- Files created using file names returned by this function are not automatically
- --- RECORDSEPARATOR ---
- deleted when Windows shuts down.